package org.example;

import cn.dev33.satoken.SaManager;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;


@SpringBootApplication
@ComponentScans(value = {@ComponentScan("org.example.config"), @ComponentScan("org.example.utils")})
public class CoreApplication {
    public static void main(String[] args) throws JsonProcessingException {
        SpringApplication.run(CoreApplication.class,args);
        System.out.println("启动成功，Sa-Token 配置如下：" + SaManager.getConfig());
    }
}
